package com.ray.mode.abstract1;

public class PhoneMain {


    /**
     * 抽象工厂模式
     *
     */
   public static void main(String[] args) {
       //小米系列
       XiaomiFactory xiaomiFactory = new XiaomiFactory();
       IphoneProduct iphoneProduct = xiaomiFactory.iphoneProduct();
       iphoneProduct.start();
       iphoneProduct.callup();
       IRouterProduct iRouterProduct = xiaomiFactory.routerProduct();
       iRouterProduct.openwifi();
   }

}
